<ul>
<?php foreach($pages as $page): ?>
  <li><?php echo getLink("pages/show/".$page['name']) ?></li>
<?php endforeach; ?>
</ul>